package day0910.demo1;

/**
 * @Author:galaxy_yan
 * @Date: 2022/9/10
 * @Time: 16:20
 * @Description
 */
public class Animal {
    public  String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println("猫咪"+name+"在吃饭");
    }

}
